import request from '@/utils/request';
// import { rsaEncrypt } from '@/utils/commonutils3'

export function getCategorySellList(data) {
	// const data1 = rsaEncrypt(data)
	return request({
		url: '/platform/SupplyChain/userBuyInfo',
		method: 'get'
		// params: {
		//   data: data1
		// }
	});
}

export function login(data) {
	// const data1 = rsaEncrypt(data)
	return request({
		url: '/login',
		method: 'post',
		data
	});
}

// 获取用户名
export function getUserSid(data) {
	return request({
		url: '/platform/getUserName',
		method: 'get',
		params: data
	});
}

// 获取通证涨幅
export function getScreenToken(data) {
	return request({
		url: '/platform/getScreenToken',
		method: 'get',
		data
	});
}

// 获取门店实时数据
export function getStoreInfo(data) {
	return request({
		url: '/platform/getStoreInfo',
		method: 'get',
		data
	});
}

// 获取门店7日销售排名
export function getStoreRank(data) {
	return request({
		url: '/platform/getStoreSalesRanking',
		method: 'get',
		data
	});
}

// 获取供应商排名
export function getSupplierRank(data) {
	return request({
		url: '/platform/getSupplierNumber',
		method: 'get',
		data
	});
}

// 获取收银设备实时状态
export function getPosCount(data) {
	return request({
		url: '/platform/getCashierStatus',
		method: 'get',
		data
	});
}
